<template>
	<view class="container">
		<view class="information">
			已装
		</view>
		<view class="frame" v-for="(item,index) in list.boxList" :key="index" v-if="list.boxList.length>0">
			<view class="boxNo">{{item.boxNo}}</view>
			<view class="frame_l" v-for="(item1,index1) in item.boxItemList">
				<view class="l-t">单号:{{item1.no}}</view>
				<view class="l-r">名称:{{item1.productName||''}}</view>
			</view>
		</view>
		<view v-if="list.boxList.length==0" class="None">
			暂无信息
		</view>
		<view class="information">
			未装
		</view>
		<view class="frame" v-for="(item1,index1) in list.lackList" :key="index1" v-if="list.lackList.length>0">
			
			<view class="frame_l" >
				<view class="l-t">名称:{{item1.productName || ''}}</view>
				<view class="l-r">数量:{{item1.count||''}}</view>
			</view>
		</view>
		<view v-if="list.lackList.length==0" class="None">
			暂无信息
		</view>
	</view>
</template>

<script>
	import {getOrderBoxes} from '@/api/store.js'
	export default{
		data(){
			return{
				list:[],
				id:'',
			}
		},
		onLoad(option) {
			this.id = option.id
			console.log('option：',option);
			this.getDetail()
		},
		methods:{
			async getDetail(){
				let res = await getOrderBoxes(this.id)
				console.log('获取数据:',res);
				this.list = res.data
			}
		}
	}
</script>

<style scoped>
	.boxNo{
		width: 100%;
		height: 80rpx;
		display: flex;
		align-items: center;
		justify-content: flex-start;
	}
	.None{
		width: 100%;
		height: 120rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 26rpx;
		color: #999999;
	}
	.l-r{
		margin-left: 50rpx;
		width: 300rpx;
		height: 70rpx;
		line-height: 70rpx;
		  text-overflow: ellipsis;
		    overflow: hidden;
		    word-break: break-all;
		    white-space: nowrap;
	}
	.l-t{
		width: 300rpx;
		height: 70rpx;
		line-height: 70rpx;
		  text-overflow: ellipsis;
		    overflow: hidden;
		    word-break: break-all;
		    white-space: nowrap;
	}
	.frame_l{
		width: 100%;
		height: 70rpx;
		display: flex;
		align-items: center;
		font-size: 24rpx;
		color: #999999;
		border-bottom: 1rpx solid #cccccc;
		
	}
	.frame_a{
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: space-between;
		font-size: 24rpx;
		margin-bottom: 20rpx;
	}
	.frame{
		width: 100%;
		min-height: 70rpx;
		display: flex;
		flex-direction: column;
		padding: 0rpx 31rpx;
		box-sizing: border-box;
		background-color:#FFFFFF;
		margin-bottom: 10rpx;
	}
	.information1{
		width: 100%;
		height: 61rpx;
		display: flex;
		align-items: center;
		padding: 0 38rpx;
		box-sizing: border-box;
		font-size: 24rpx;
		color: #333333;
		background-color: #F8F8F8 ;
	}
	.information{
		width: 100%;
		height: 61rpx;
		display: flex;
		align-items: center;
		padding: 0 38rpx;
		box-sizing: border-box;
		font-size: 24rpx;
		color: #333333;
		background-color: #F8F8F8 ;
	}
	.container{
		width: 100%;
		height: 100vh;
		display: flex;
		flex-direction: column;
		align-items: center;
		background-color: #FFFFFF;
	}
</style>